"""Setup the sc application"""
import logging
from datetime import datetime
from sc.config.environment import load_environment
from sc.model import meta

log = logging.getLogger(__name__)

def setup_app(command, conf, vars):
    """Place any commands to setup sc here"""
    load_environment(conf.global_conf, conf.local_conf)

    meta.metadata.drop_all(bind=meta.engine)
    meta.metadata.create_all(bind=meta.engine)
